<div ng-controller="widthDrawCtrl" >
<div class="ngdialog-message">

<form class="form-horizontal" method="get" action="#">
<style>
.col-sm-2 {padding-left: 0;}
.col-sm-1 {width: 9.333333%;}
.ngdialog-close{display:none;}
.chargehead{
    color:#fff;
    background-color:#ff9a66;
}
 .ngdialog.ngdialog-theme-plain>div.ngdialog-content{
    padding:0;
}
.form-horizontal .form-group {
    margin-right: -15px;
    margin-left: 0px; 
}
</style>
<div  ng-hide='isTransPasswordSet0'>
    <div  ng-hide='amoutReady'>
        <div class="panel-heading font-bold chargehead">
            提现操作
        </div>
        <div class="panel-body">
            <div class="form-group">
                <p style='font-size:14px;font-size:bold;'><label class="">&nbsp;收款银行信息</label>
                </p>
                 <p style='font-size:12px; color:#aaa;'>&nbsp;开户行：{{bankName}}&nbsp;&nbsp;&nbsp;&nbsp;银行卡号：{{bankAccount}}
                    
                </p>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" >提现金额</label>
            </div>
            <div class="col-sm-4">
                <div class="input-group m-b">
                    <input type="number" ng-model="withdrawAmout" class="form-control" placeholder='￥'>
                    <span class="input-group-addon">元</span>
                </div>
            </div>
            <label class="col-sm-1"></label>
            <label class="col-sm-2 control-label">可提现:　￥{{totalAmount}} 元</label>            
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
        <div class="ngdialog-buttons">
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">关闭</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="modifySure()">提现</button>
        </div>
        </div>
    </div>
    <div  ng-show='amoutReady'>
        <div class="panel-heading font-bold chargehead">
            操作确认
        </div>
        <div class="panel-body">
            <div class="input-group" style='width:100%;text-align:center;'>                
                <br/>
                <br/>
                <p style='font-size:18px;font-weight:bold; color:#3288e6;'>当前申请提现:￥{{withdrawAmout}}
                </p>
                 <p style='font-size:12px; color:#3288e6;'>将在7个工作日内打入指定银行 </p>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" >&nbsp;资金密码：</label>
            </div>
            <div class="col-sm-4">
                <div class="input-group m-b">
                    <input type="number" ng-model="transPassword" class="form-control" placeholder='请输入资金密码'>                    
                </div>
            </div>            
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
        <div class="ngdialog-buttons">
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">关闭</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="withdrawSure()">确定</button>
        </div>
        </div>
    </div>
</div>

<div ng-show='isTransPasswordSet0' >
        <div class="panel-heading font-bold chargehead">
                   尚未设置交易密码
        </div>
        <div class="panel-body">            
                <label class="col-sm-2  control-label">资金密码:</label>
                <div class="col-sm-4">
                    <input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="newPassword" />
                </div>                    
            <br/>
            <br/>           
            
                <label class="col-sm-2  control-label">确认密码:</label>
                <div class="col-sm-4">
                    <input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="comfirmedPassword" />
                </div>                    
            <br/>
            <br/>       
        <div class="ngdialog-buttons">
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">取消</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="saveData()">保存</button>
        </div>
        <br/>
        </div>
</div>